# Module: elasticsearch
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/7.17/metricbeat-module-elasticsearch.html

- module: elasticsearch
  xpack.enabled: true
  metricsets:
    - node
    - node_stats
  period: 30s
  hosts: ["{{ elk_schema }}{{ ansible_host }}:9200"]

  username: "elastic"
  password: "${ELASTIC_PASS}"
  ssl.verification_mode: "none"